package cn.yhz.pethome.dept.domain;

import cn.yhz.pethome.base.domain.BaseDomain;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Data
@ToString
public class Department extends BaseDomain {
    private String sn; //部门编号
    private String name; //部门名称
    private String dirPath; //部门的上级分层
    private Integer state; //部门状态

    private Long manager_id; //管理员id
    private Employee manager;

    private Long parent_id; //上级部门
    private Department parent;

    //专门放下级
    private List<Department> children = new ArrayList<>();

}
